Fix crash with theme resource file
authorAlexander Larsson <alexl@redhat.com>
Fri, 3 Feb 2012 15:37:54 +0000 (16:37 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 3 Feb 2012 15:37:54 +0000 (16:37 +0100)
commitfb0c53a0ed1daf5417bc90af848131416dc13d81
tree321ce86250f1910c6a325cf3b16d100d151d6b27
parent6b2f10321f74a817b0d210ed937775de10d80bd3
Fix crash with theme resource file

The freeing the GResource in gtk_css_provider_reset caused problems
because it was called from gtk_css_provider_load_from_path() inside
gtk_css_provider_get_named(). We fix this by delaying the
setting of priv->resource until we successfully loaded the file.
gtk/gtkcssprovider.c